<!-- 购物车 -->
<template>
  <div class="cart">
    <div class="">
      <h2 class="title">购物车</h2>
      <div class="con">
        <!-- 商城类型选项卡 -->
        <div class="tabsBox">
          <van-tabs v-model="currentTab" type="card">
            <van-tab
              :title="item.title"
              :name="item.name"
              v-for="(item, idx) in listTabs"
              :key="idx"
            >
            </van-tab>
          </van-tabs>
        </div>
        <type-shop :currentTab="currentTab"></type-shop>
      </div>
    </div>
  </div>
</template>

<script>
import typeShop from "@/components/cart/type-shop.vue";
export default {
  components: {
    typeShop
  },
  data() {
    return {
      currentTab: 'taobao',
      listTabs: [
        {
          title: "淘宝",
          name:'taobao'
        },
        {
          title: "1688",
          name:'1688'
        },
      ],
    };
  },
  computed: {
    
  },
  mounted() {
  },
  methods: {
    
  },
};
</script>
<style lang="scss" scoped>
.cart {
  min-height: 100vh;
  padding-bottom: 160px;
  .title {
    font-size: 16px;
    text-align: center;
  }
  .con {
    .tabsBox {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
      span {
        font-size: 14px;
        color: #666;
      }
    }
  }
  ::v-deep(.van-tabs__nav){
    background-color:transparent;
    .van-tab{
      font-size: 16px;
      padding:0 10px;
    }
  }
  ::v-deep(.van-tabs__nav--card){
    margin:0;
  }
}
.flex {
  display: flex;
  align-items: center;
}
</style>
